package com.five.dao.backstage;

import com.five.entity.backstage.TChange;
import com.five.entity.backstage.TTuifang;
import com.five.entity.backstage.TXufang;

import java.util.List;
import java.util.Map;

/**
 * @Author: 王登峰
 * @Description:
 * @Date: 2020/12/2 14:26
 */
public interface QianTaiDao {
    List<Map> selectAllRoom();

    int addTuiFang(TTuifang tTuifang);

    int changeStatus(String roomcode);

    int changeStatus2(String roomcode);

    int changeStatus3(String roomcode);

    int changeStatus4(String roomcode);

    List<Map> selectByKY(Integer typeid);

    int addChangeRoom(TChange tChange);

    List<Map> selectChangeRoom(String ruzhuid);

    int changeRuzhuDetail(String newroom, String oldroom);

    int changCount(String ruzhuid);

    //查询该订单的房间有没有分配完
    int orderFenPei(String orderid);

    //查询该订单的房间有没有都退完
    int orderTuiFang(String orderid);

    //根据订单号查出该订单定了几间房
    int countByOrder(String orderid);

    int changeOrderStatus(String orderid);

    //根据入住id改变入住详情单的状态
    int changeruzhustatus(String ruzhuid);

    int changeruzhustatus1(String ruzhuid);

    int addXuFang(TXufang tXufang);

    //查看续房表
    List<Map> selectxufangfang(String ruzhuid);

    //查看这个订单有提取退房的信息
    List<Map> selectTiQianTui(String orderid);

    //如果该订单提前退房了，把istiqian状态改为1
    int isTiQian(String orderid);

    String selectZuiWan(String orderid);

    //看这个订单是否住过
    int isZhuGuo(String orderid);

    int selectZhuGou(String orderid);

    //改变订单的状态为 4 取消
    int changeOrderStatus4(String orderid);

    //如果取消订单 把isquxiao改为1
    int changequxiao(String orderid);

    //根据订单查找入住详情
    List<Map> selectRuzhu(String orderid);
}
